{foreach $data.options as $value => $title}
<input type="radio"
    {foreach $data.attrs as $key => $attr}
    {if $key != 'value'}
    {$key}="{$attr}"
    {/if}
    {/foreach}

    value="{$value}"
    {if $data.is_title}title="{$title}"{/if}
    {if $value == ($data.attrs.value ?? '')}checked{/if}
>
{if !$data.is_title}
{$title}
{/if}
{/foreach}
